package cn.pl.config;



import javax.sql.DataSource;
import javax.xml.crypto.Data;

//@Configuration
//@PropertySource("classpath:application.properties")
//@EnableConfigurationProperties(JdbcPropertise.class)
public class JdbcConfig {

   /* @Value("${jdbc.driverClassName}")
    private String driverClassName;
    @Value("${jdbc.url}")
    private String url;
    @Value("${jdbc.username}")
    private String username;
    @Value("${jdbc.password}")
    private String password;*/

   /*@Bean
    public DataSource dataSource(JdbcPropertise prop){
        DruidDataSource dataSource1 = new DruidDataSource();
        dataSource1.setDriverClassName(prop.getDriverClassName());
        dataSource1.setUrl(prop.getUrl());
        dataSource1.setUsername(prop.getUsername());
        dataSource1.setPassword(prop.getPassword());
        return dataSource1;
    }*/

   /*@Bean
   @ConfigurationProperties(prefix = "jdbc")
   public DataSource dataSource(){
       return new DruidDataSource();
   }*/
}
